package com.sinochem.iot.rule.common;

public enum RestCode {
	OK(0,"ok"),
	UNKNOWN_ERROR(1,"触发器服务异常"),
	FAIL(4,"FAIL"),
	Trigger_Name_Null(11, "触发器名称为空"),
	Dataformat_NUll(12, "请选择数据格式"),
	Trigger_Name_Length(13, "名称长度限制4~30个字符"),
	Trigger_Desc_Length(14, "描述不能超过140个字符"),
	Trigger_Rule_Null(15, "请先填写规则"),
	Sql_Null(16, "sql不能为空"),
	Rule_Field_Null(17, "字段为空"),
	Product_Null(18, "请选择产品"),
	Device_Null(19, "请选择设备"),
	Attr_Null(20, "请选择属性"),
	Condition_Null(21, "请选择查询条件"),
	Value_Null(22, "数据值为空"),
	Field_Length(23, "字段长度限制1~50字符"),
	Tri_Desc_Null(24, "请数据目的地"),
	Condition_Value_Length(25, "查询条件值范围-2147483648 ~ 2147483647"),
	Condition_Value_Error(26, "查询条件值数据格式不正确"),
	Trigger_Rule_Exist(27, "设备和属性已经存在规则"),
	Trigger_Desc_Null(28, "请先填写触发结果");


	public final int code;
	public final String msg;

	private RestCode(int code,String msg){
		this.code = code;
		this.msg = msg;
	}

}
